import mould1 from '@/common/theme/mould1'
import mould2 from '@/common/theme/mould2'
import type { themeMouldState } from '@/types/theme'

const list: themeMouldState[] = [mould1, mould2]
export default list

export function getThemeConfirg(name: string) {
  const info: themeMouldState | undefined = list.find((el: themeMouldState) => {
    return el.name === name
  })
  if (info) {
    return info.themeConfig
  } else {
    return list[0].themeConfig
  }
}
